function pos_ang=def_t_func(t)
% def_t_func: An example of t_func function to describe player's motion w.r.t. time
%
% SYNTAX:
%   pos_ang = def_t_func(t)
%   Return position and angle as a function of time t

%   Author: Hongbin Ma
%   Last updated: 2009-6-1 with MATLAB 6.5
%   Problems or suggestions? Email me: mathmhb[at]163.com

switch P.pos
case 2
pos_ang=[t,sin(t),atan2(cos(t),1)];
case 3
pos=[t,sin(t),cos(t)];
pos_ang=pos;
end;
